import request from '@/utils/request'

//获取教师课程列表
export function queryCourseList(teacherId){
  return request({
    url: '/course/queryByTeacher/' + teacherId,
    method: 'post'
  })
}
//通过课程id查作业
export function queryCourseByClassId(classId){
  return request({
    url: '/course//' + classId,
    method: 'post'
  })
}
//添加作业
export function ClassAdd(classId){
  return request({
    url: '/course//' + classId,
    method: 'post'
  })
}
export function ClassAddFirst(data) {
  return request({
    url: '/stuclass/insert',
    method: 'post',
    data: data
  })
}
//查询插入的课程好
export function FindClassId(name) {
  return request({
    url: '/stuclass/queryByName/'+name,
    method: 'post'
  })
}
//查询插入的课程2
export function addTwo(data) {
  return request({
    url: '/course/insert',
    method: 'post',
    data: data
  })
}
//获取教师课程列表by学生
export function queryCourseListByStudent(studentId){
  return request({
    url: '/course/queryByStudent/' + studentId,
    method: 'post'
  })
}
